/**
 *  配置导航栏
 */

const state = {
  environment: '',
  token: ''
}

const mutations = {
  SET_ENV: (state, env) => {
    state.environment = env
  },
  SET_TOKEN: (state, token) => {
    state.token = token
  }
}

const actions = {
  setENV({ commit }, env) {
    commit('SET_ENV', env)
  },
  setToken({ commit }, token) {
    commit('SET_TOKEN', token)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
